treeview: Don't show missing images
authorMatthias Clasen <mclasen@redhat.com>
Sat, 17 May 2014 19:32:54 +0000 (15:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 17 May 2014 19:32:54 +0000 (15:32 -0400)
When a model is sortable, but the the column is not currently used
for sorting, we want to reserve the space for showing the sort
indicator. But we currently set the icon to 'missing-image', which
is not great to show all over the place. So, just set the opacity
to 0.

gtk/gtktreeviewcolumn.c

index 55b9660b273abc0e1d2a81a508144986a9bb2262..7449380efdc87768215f780b73a4daf8c4316467 100644 (file)
@@ -1023,6 +1023,11 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column)
   else
     gtk_widget_hide (arrow);
 
+  if (priv->show_sort_indicator)
+    gtk_widget_set_opacity (arrow, 1.0);
+  else
+    gtk_widget_set_opacity (arrow, 0.0);
+
   /* It's always safe to hide the button.  It isn't always safe to show it, as
    * if you show it before it's realized, it'll get the wrong window. */
   if (priv->button &&